import request from '../utils/request'

//  登录接口
export function login (data) {
  return request({
    method: 'POST',
    url: '/login',
    data
  })
}
// 获取验证码
export const getCode = (data) => {
  return request({
    method: 'GET',
    url: '/captcha',
    params: data
  })
}
